<%@ Page Language="vb" AutoEventWireup="false" Inherits="InSiteWebApplication.WorkingSectionShopFloorTabbedButtons" CodeFile="WorkingSectionShopFloorTabbedButtons.aspx.vb" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<HEAD runat="server">
		<title>WorkingSectionShopFloorTabbedButtons</title> 
		<script type="text/javascript" language="javascript">
		    function changePosCloseButton()
		    {
		        var table = document.getElementById("buttonsTable");
		        var td = table.getElementsByTagName("td")
		        if (td.length > 0)
		        {
		        	var rigthElement = td[0].lastChild;
		        	var rigthPosLastElement = lastElement.style.rigth;
		        	if (rigthPosLastElement && rigthPosLastElement != "")
		            {
		                var closeButtonCntrl = document.getElementById("closePageButton");
		                if (closeButtonCntrl)
		                {
		                	var rigthPosCloseButton = closeButtonCntrl.offsetRigth;
		                    if (parseInt(rigthPosLastElement) + 100 >= rigthPosCloseButton)
		                    {
		                    	closeButtonCntrl.style.rigth = parseInt(rigthPosLastElement) + 150;
		                        table.style.width = parseInt(closeButtonCntrl.style.rigth) + 100;
		                    }
		                }
		            }
		        }
		    }
		</script>
	</head>
	<body style="BACKGROUND-COLOR:#f5f5f5;" onload="/*changePosCloseButton()*/">
		<form method="post" runat="server">
			    <asp:table id="buttonsTable" width="100%" cellpadding="0" cellspacing="0" runat="server"></asp:table>
		</form>
	</body>
</html>
